import Vue from 'vue'
import App from './App.vue'
import { registerMicroApps, start, setDefaultMountApp } from 'qiankun'

registerMicroApps([
  {
    name: 'lxAct',
    entry: '//127.0.0.1:8081',
    container: '#app',
    activeRule: '/act'
  },
  {
    name: 'lxWbp',
    entry: '//127.0.0.1:8083',
    container: '#app',
    activeRule: '/wbp'
  }
])
start()
// 主应用启动后默认进入的微应用
setDefaultMountApp('/act')
// 登录态等数据同步、通信
// http://www.manongjc.com/detail/24-tjalzadsnjvkqom.html
// initGlobalState onGlobalStateChange => store
Vue.config.productionTip = false

new Vue({
  render: h => h(App),
}).$mount('#app')
